package com.tchhy.provider.data.profit

import android.os.Parcel
import android.os.Parcelable

/**
 * @author: pujialin
 * @date: 2021-01-19 15:30
 * @desc:
 */
class AuthParam() :Parcelable{
    var backUrl: String? = null
    var frontUrl: String? = null

    constructor(parcel: Parcel) : this() {
        backUrl = parcel.readString()
        frontUrl = parcel.readString()
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeString(backUrl)
        parcel.writeString(frontUrl)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<AuthParam> {
        override fun createFromParcel(parcel: Parcel): AuthParam {
            return AuthParam(parcel)
        }

        override fun newArray(size: Int): Array<AuthParam?> {
            return arrayOfNulls(size)
        }
    }
}